T=20; n=[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]; a=[784,196,588,969,576,288,870,846,563,35,910,789,445,768,8,315,560,172,904,647,452,57,892,154,562,924,281,552,986,403,740,811,491,91,864,546,495,926,543,763,26,295,927,309,618,720,995,199,456,418,38,944,719,472,634,317,373,834,363,358];